<?php

/**
 * @author @author Samrat Khan & Sadik Sarfaraz - May 14, 2013
 */
    require('top.inc.php');
?>
<?php
if(isset($_SESSION['user']) && $_SESSION['user']['utype'] == 1 || $_SESSION['user']['utype'] == 2 || $_SESSION['user']['utype'] == 3 || $_SESSION['user']['utype'] == 4) {
    $sess_cusID = $_SESSION['user']['cus_id'];
?>
<div class="tabbable">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#pane1" data-toggle="tab">Product ID Based</a></li>
        <li><a href="#pane2" data-toggle="tab">Serial No Based</a></li>
    </ul>
    <div class="tab-content">
        <div id="pane1" class="tab-pane active">
            <?php 
                echo '
                    <div class="input-prepend input-append">
                        <input id="pickSearchTerm" class="span5" type="text" placeholder="Search using Product ID/Part Code...">
                    </div>
                ';
                echo '<div id="mhbyproductid"></div>';
            ?>
        </div>
        <div id="pane2" class="tab-pane">
            <?php
            echo '
                <div class="input-prepend input-append">
                    <input id="pickSearchSerialNo" class="span5" type="text" placeholder="Search using Serial No...">
                </div>
            ';
            echo '<div id="mhbyserialno"></div>'
            ?>
        </div>
    </div><!-- /.tab-content -->
</div><!-- /.tabbable -->
    
<?php
} else {
    header("Location: login.php");
}
?>